STREAMLIT_STYLE = """
<style>
    .main-header {
        background: linear-gradient(90deg, #8B4513, #A0522D);
        padding: 1rem;
        border-radius: 10px;
        margin-bottom: 2rem;
        text-align: center;
        color: white;
    }
    
    .metric-card {
        background: white;
        padding: 1rem;
        border-radius: 8px;
        border-left: 4px solid #8B4513;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .sidebar-section {
        background: #f8f9fa;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    .ai-summary {
        background: #f0f8ff;
        padding: 1.5rem;
        border-radius: 10px;
        border: 1px solid #8B4513;
        margin: 1rem 0;
    }
    
    .placeholder-content {
        background: #f8f9fa;
        padding: 3rem;
        border-radius: 15px;
        text-align: center;
        margin: 2rem 0;
        border: 2px dashed #8B4513;
    }
    
    .stButton > button {
        background-color: #8B4513;
        color: white;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        width: 100%;
    }
    
    .stButton > button:hover {
        background-color: #A0522D;
    }
</style>
"""

CACHE_TTL = 60 * 60

# API配置
API_BASE_URL = "http://localhost:8500/api/v1"